STEP 11: Let's add a break that will stop the program once all the secret letters have been revealed.

  • Go to and drag out if.
  • Change the test variable to revealed_length and the test value to word_length.
  • Drag out Say and drop it inside the if block. Change the string to "You took too long!"
  • Go to and drag out break. Drop it inside of the if block below the say command.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)